#include <iostream>
//#include <cstring>
#include <cstdlib>
using std::string;
using std::cin;
using std::cout;
using std::endl;

int main()
{
	char* cchar1 = "Hello";
	char* cchar2 = "World";

	char* ccombine = (char *)malloc(sizeof(cchar1) + sizeof(cchar2) + 1);
	if(ccombine != NULL) 
	{
		strncpy(ccombine, cchar1, strlen(cchar1) + 1);
		strcat(ccombine, cchar2);
	}
	cout << ccombine << endl;

	string ss1 = string("Hello");
	string ss2 = string("World");
	string scombine = ss1 + ss2;
	cout << scombine << endl;

	return 0;
}
